﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TypeSample
{
    public class Student
    {
        public string Name { get; set; }
        public int Age { get; set; }

        public Student(string name, int age)
        {
            this.Name = name;
            this.Age = age;
        }
        public void Print()
        {
            Console.WriteLine($"名字:{Name}  性别:{Age}");
        }
    }
}
